#include<bits/stdc++.h>
using namespace std;

int main(){
    int n;
    char c = 'A';
    cin >> n;
    for(int i = 1; i <= n; i++){
        for(int j = 1; j <= n + i - 1; j++){
            if(j <= n - i){
                cout << " ";
            }else{
                cout << c;
            }
        }
        cout << endl;
    }

    return 0;
}

/*
 n - i 和 2 * i - 1 
  A
 AAA
AAAAA
3
i ' '  'A'   j 
1  2    1    3
2  1    3    4
3  0    5    5

*/